<:#240,9025><:f200,2Times New Roman,>END DIALOG<:f>
<:f200,2Times New Roman,><:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function called when opening an existing HTML document<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************
<:#240,9025><:f200,2Times New Roman,>FUNCTION InitHTML()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>NumGlobs = GetGlobalVarCount()
<:#240,9025><:f200,2Times New Roman,>IF NumGlobs<;>0
<:#240,9025><:f200,2Times New Roman,> DIM TempArray(Numglobs)
<:#240,9025><:f200,2Times New Roman,> GetGlobalVarNames(&TempArray)
<:#240,9025><:f200,2Times New Roman,> Active=0
<:#240,9025><:f200,2Times New Roman,> FOR i = 1 to NumGlobs
<:#240,9025><:f200,2Times New Roman,> IF TempArray(i)="HTMLActive" Active=1
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> NEXT
<:#240,9025><:f200,2Times New Roman,> IF Active=1
<:#240,9025><:f200,2Times New Roman,> N=GetGlobalVar$("HTMLDocs")
<:#240,9025><:f200,2Times New Roman,> N=N+1
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("HTMLDocs", N)
<:#240,9025><:f200,2Times New Roman,> EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar("HTMLDir",1)<:f>
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar("HTMLActive", 1)
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar("HTMLDocs", 1)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HTMLDocs", 1)
<:#240,9025><:f200,2Times New Roman,>CALL InitHREFTable()
<:#240,9025><:f200,2Times New Roman,>CALL InitImageTable()<:f>
<:#240,9025><:f200,2Times New Roman,>CALL InitHotKeys()
<:#240,9025><:f200,2Times New Roman,>CALL InitMenus()
<:#240,9025><:f200,2Times New Roman,>TEMP$= GetProfileString$("HTML", "HTMLDir", "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$=""
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDocPath$()
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HTMLDir",TEMP$)
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ConvertDialog")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>BRClear")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>HRThick")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>HRAlign")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>HRWidth")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>HRShade")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>AuthNoComma")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("<:f><:f200,2Times New Roman,>AuthNoRule")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ImgHSPACE")
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ImgVSPACE")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ImgWIDTH")
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ImgHEIGHT")<:f>
<:#240,9025><:f200,2Times New Roman,>CALL AddVariable("ImgBORDER")
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddVariable(Name)
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar(Name,1)
<:#240,9025><:f200,2Times New Roman,>TEMP$= GetProfileString$("HTML", Name, "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar(Name,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION InitHREFTable()
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar("PastURLs",10)
<:#240,9025><:f200,2Times New Roman,>I= 1
<:#240,9025><:f200,2Times New Roman,>Continue=1
<:#240,9025><:f200,2Times New Roman,>WHILE (Continue=1)
<:#240,9025><:f200,2Times New Roman,> Name$="URL{I}"
<:#240,9025><:f200,2Times New Roman,> URL= GetProfileString$("HTML", Name$, "AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,> IF URL="" SetGlobalArray("PastURLs",I,"")
<:#240,9025><:f200,2Times New Roman,> ELSE SetGlobalArray("PastURLs",I,URL)
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> I=I+1
<:#240,9025><:f200,2Times New Roman,> IF I<;>10 Continue=0
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,>WEND
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>end function<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION InitImageTable()
<:#240,9025><:f200,2Times New Roman,>AllocGlobalVar("PastImages",10)
<:#240,9025><:f200,2Times New Roman,>I= 1
<:#240,9025><:f200,2Times New Roman,>Continue=1
<:#240,9025><:f200,2Times New Roman,>WHILE (Continue=1)
<:#240,9025><:f200,2Times New Roman,> Name$="IMAGE{I}"
<:#240,9025><:f200,2Times New Roman,> URL= GetProfileString$("HTML", Name$, "AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,> IF URL="" SetGlobalArray("PastImages",I,"")
<:#240,9025><:f200,2Times New Roman,> ELSE SetGlobalArray("PastImages",I,URL)
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> I=I+1
<:#240,9025><:f200,2Times New Roman,> IF I<;>10 Continue=0
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,>WEND
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>end function<:f>
<:f200,2Times New Roman,><:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Functions to set up Hotkeys and menus<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION InitHotKeys()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>MacFile=GetRunningMacroFile$()
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddHREF"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshifth], "", Macro)
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddName"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshiftn], "", Macro)
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddImage"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshifti], "", Macro)
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddAddress"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshifta], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddRule"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshiftr], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddBreak"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshiftb], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!ConvertFile"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshiftc], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddAuthor"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshifta], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!Options"<:f>
<:#240,9025><:f200,2Times New Roman,>OnKey(<[>ctrlshifto], "", Macro)<:f>
<:#240,9025><:f200,2Times New Roman,>'Macro="{MacFile}!TestDoc"<:f>
<:#240,9025><:f200,2Times New Roman,>'OnKey(<[>ctrlshiftt], "", Macro)<:f>
<:f200,2Times New Roman,><:f><:f200,2Times New Roman,><:f200,2Times New Roman,>Macro="{MacFile}!BackGround"<:f>
<:f200,2Times New Roman,>OnKey(<[>F12], "", Macro)<:f>
<:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION InitMenus()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>MacFile=GetRunningMacroFile$()
<:#240,9025><:f200,2Times New Roman,>InsertMenu(1, 3, "HTM&L")
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenu(1, "HTM&L", "Elements")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!ParaStyle"<:f>
<:#240,9025><:f200,2Times New Roman,>AddMenuItem(1, "HTM&L", "<:f><:f200,2Times New Roman,>Paragraph Style<:f><:f200,2Times New Roman,>", Macro, "Select Paragraph Style")<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenu(1, "HTM&L", "Text Styles")<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenu(1, "HTM&L", "Text Effects")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!BackGround"<:f>
<:f200,2Times New Roman,>AddMenuItem(1, "HTM&L", "<:f><:f200,2Times New Roman,>Set Background etc.<:f><:f200,2Times New Roman,> F12", Macro, "Set Background Image and colours<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!ConvertFile"<:f>
<:#240,9025><:f200,2Times New Roman,>AddMenuItem(1, "HTM&L", "<:f><:f200,2Times New Roman,>Convert File ^ + SHIFT C<:f><:f200,2Times New Roman,>", Macro, "Convert file<:f><:f200,2Times New Roman,> to HTML<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>'Macro="{MacFile}!TestDoc"<:f>
<:#240,9025><:f200,2Times New Roman,>'AddMenuItem(1, "HTM&L", "<:f><:f200,2Times New Roman,>Test File
^ + SHIFT T<:f><:f200,2Times New Roman,>", Macro, "<:f><:f200,2Times New Roman,>Test HTML file with browser<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!Options<:f><:f200,2Times New Roman,>"<:f>
<:#240,9025><:f200,2Times New Roman,>AddMenuItem(1, "HTM&L", "<:f><:f200,2Times New Roman,>Set Options<:f><:f200,2Times New Roman,> ^ + SHIFT O<:f><:f200,2Times New Roman,>", Macro, "<:f><:f200,2Times New Roman,>Set Options<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddHREF"<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddName"<:f>
<:#480,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "Add NAME Anchor<:f><:f200,2Times New Roman,> ^ + SHIFT N<:f><:f200,2Times New Roman,>", Macro, "Add NAME Anchor")
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddImage"<:f>
<:#240,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "Add IMAGE <:f><:f200,2Times New Roman,>^ + SHIFT I<:f><:f200,2Times New Roman,>", Macro, "Add IMAGE")
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddAddress"<:f>
<:#480,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "Add ADDRESS <:f><:f200,2Times New Roman,>^ + SHIFT A<:f><:f200,2Times New Roman,>", Macro, "Add Address")
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddRule"<:f>
<:#480,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add RULE
<:f><:f200,2Times New Roman,> ^ + SHIFT R<:f><:f200,2Times New Roman,>", Macro, "Add Horizontal Rule")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddBreak"<:f>
<:#480,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add BREAK
<:f><:f200,2Times New Roman,> ^ + SHIFT B<:f><:f200,2Times New Roman,>", Macro, "Add Line Break")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddNOBR"<:f>
<:#240,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add NOBR
<:f><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>", Macro, "Add No Break Tag")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddWBR"<:f>
<:#240,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add WBR
<:f><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>", Macro, "Add Word Break Tag")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddAuthor"<:f>
<:#480,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add Author ^ + SHIFT A<:f><:f200,2Times New Roman,>", Macro, "<:f><:f200,2Times New Roman,>Add Author to text<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddComment"<:f>
<:#240,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add Comment<:f><:f200,2Times New Roman,>", Macro, "<:f><:f200,2Times New Roman,>Add Comment/Note to text<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!AddDateTime"<:f>
<:#240,9025><:f200,2Times New Roman,>Add<:f><:f200,2Times New Roman,>Cascade<:f><:f200,2Times New Roman,>MenuItem(1, "HTM&L",<:f><:f200,2Times New Roman,> "Elements",
<:f><:f200,2Times New Roman,> "<:f><:f200,2Times New Roman,>Add Date/Time<:f><:f200,2Times New Roman,>", Macro, "<:f><:f200,2Times New Roman,>Add Date/Time to text<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(EM)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>Emphasis<:f><:f200,2Times New Roman,>", Macro, "Emphasis text style")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(STRONG)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>Strong<:f><:f200,2Times New Roman,>", Macro, "Strong text style")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(CODE)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>Code<:f><:f200,2Times New Roman,>", Macro, "Code listings style")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(SAMP)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>Sample<:f><:f200,2Times New Roman,>", Macro, "Sample text style")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(KBD)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>KBD<:f><:f200,2Times New Roman,>", Macro, "Text typed by user")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(VAR)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>VAR<:f><:f200,2Times New Roman,>", Macro, "A variable name")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(DFN)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>DFN<:f><:f200,2Times New Roman,>", Macro, "The defining instance of a term")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextStyle(CITE)"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Styles", "<:f><:f200,2Times New Roman,>CITE<:f><:f200,2Times New Roman,>", Macro, "A citation")<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextEffects(""BOLD"")"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text <:f><:f200,2Times New Roman,>Effects<:f><:f200,2Times New Roman,>", "<:f><:f200,2Times New Roman,>BOLD<:f><:f200,2Times New Roman,>", Macro, "Bold text")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextEffects(""ITALIC"")"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text <:f><:f200,2Times New Roman,>Effects<:f><:f200,2Times New Roman,>", "<:f><:f200,2Times New Roman,>ITALIC<:f><:f200,2Times New Roman,>", Macro, "Italic text")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!Text<:f><:f200,2Times New Roman,>Effects<:f><:f200,2Times New Roman,>(""PITCH"")"<:f>
<:#480,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Effects", "<:f><:f200,2Times New Roman,>Toggle Pitch
<:f><:f200,2Times New Roman,>", Macro, "Toggle between fixed and variable pitch")<:f>
<:#240,9025><:f200,2Times New Roman,>Macro="{MacFile}!TextEffects<:f><:f200,2Times New Roman,>(""BLINK"")"<:f>
<:#240,9025><:f200,2Times New Roman,>AddCascadeMenuItem(1, "HTM&L", "Text Effects", "<:f><:f200,2Times New Roman,>BLINK<:f><:f200,2Times New Roman,>", Macro, "Blinking text")<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:f200,2Times New Roman,><:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function called when closing an HTML document<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Function CloseHTML()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>NumGlobs = GetGlobalVarCount()
<:#240,9025><:f200,2Times New Roman,>IF NumGlobs=0 EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>DIM TempArray(Numglobs)
<:#240,9025><:f200,2Times New Roman,>GetGlobalVarNames(&TempArray)
<:#240,9025><:f200,2Times New Roman,>Active=0
<:#240,9025><:f200,2Times New Roman,>FOR i = 1 to NumGlobs
<:#240,9025><:f200,2Times New Roman,> IF TempArray(i)="HTMLActive" Active=1
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,>NEXT
<:#240,9025><:f200,2Times New Roman,>IF Active=1
<:#240,9025><:f200,2Times New Roman,> N=GetGlobalVar$("HTMLDocs")
<:#240,9025><:f200,2Times New Roman,> IF N<;>1
<:#240,9025><:f200,2Times New Roman,> N=N - 1
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("HTMLDocs", N)
<:#240,9025><:f200,2Times New Roman,> EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> CALL WriteHREF()<:f>
<:#240,9025><:f200,2Times New Roman,> CALL WriteIMAGES()<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("HTMLDir")
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>WriteProfileString("HTML", "HTMLDir" ,TEMP$, "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>WriteProfileString("HTML", "HTMLNetScape" ,TEMP$, "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar("HTMLDocs")
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar("HTMLActive")
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar("PastURLs")<:f>
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar("PastImages")<:f>
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar("HTMLDir")
<:#240,9025><:f200,2Times New Roman,> CALL DelVariable("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>ConvertDialog")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>BRClear")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>HRThick")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>HRAlign")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>HRWidth")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("<:f><:f200,2Times New Roman,>HRShade")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL DelVariable("<:f><:f200,2Times New Roman,>AuthNoComma")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL DelVariable("<:f><:f200,2Times New Roman,>AuthNoRule")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL DelVariable("ImgHSPACE")
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("ImgVSPACE")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("ImgWIDTH")
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("ImgHEIGHT")<:f>
<:#240,9025><:f200,2Times New Roman,> CALL <:f><:f200,2Times New Roman,>Del<:f><:f200,2Times New Roman,>Variable("ImgBORDER")<:f>
<:#240,9025><:f200,2Times New Roman,> DeleteMenu(1, "HTM&L")
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION DelVariable(Name)
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$(Name)
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>WriteProfileString("HTML", Name ,TEMP$, "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,> FreeGlobalVar(Name)<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Function WriteHREF()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>for I=1 To 10
<:#240,9025><:f200,2Times New Roman,> URL$=GetGlobalArray$("PastURLs", I)
<:#240,9025><:f200,2Times New Roman,> WriteProfileString("HTML", "URL{I}" ,URL$, "AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,>Next
<:#240,9025><:f200,2Times New Roman,>End Function
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Function WriteIMAGES()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>for I=1 To 10
<:#240,9025><:f200,2Times New Roman,> IMAGE$=GetGlobalArray$("PastImages", I)
<:#240,9025><:f200,2Times New Roman,> WriteProfileString("HTML", "IMAGE{I}" ,IMAGE$, "AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,>Next
<:#240,9025><:f200,2Times New Roman,>End Function<:f>
<:f200,2Times New Roman,><:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a HREF anchor<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddHREF()
<:#240,9025><:f200,2Times New Roman,>DIM Previous(10)
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)
<:#240,9025><:f200,2Times New Roman,>for I=1 to 10
<:#240,9025><:f200,2Times New Roman,> Previous(I) = GetGlobalArray$("PastURLs",I)
<:#240,9025><:f200,2Times New Roman,> if Previous(I)<<<;>"" FillEdit(9000, Previous(I))
<:#240,9025><:f200,2Times New Roman,> endif
<:#240,9025><:f200,2Times New Roman,>next
<:#240,9025><:f200,2Times New Roman,>FillEdit(8000,Previous(1))
<:#240,9025><:f200,2Times New Roman,>box=DialogBox("." "ADDHREF")
<:#240,9025><:f200,2Times New Roman,> if box <<<;>1
<:#240,9025><:f200,2Times New Roman,> Exit Function
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>Text=CurShade$()
<:#240,9025><:f200,2Times New Roman,>IF Text<<<;>"" Cut()
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>URL$=GetDialogField$(8000)
<:#240,9025><:f200,2Times New Roman,>Field="<<A HREF=""{URL$}""<;>"
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type(Field)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)
<:#240,9025><:f200,2Times New Roman,>Type(Text)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type("<</A<;>")
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Match=0
<:#240,9025><:f200,2Times New Roman,>for I=1 to 10
<:#240,9025><:f200,2Times New Roman,> if Previous(I)=URL$ Match=1
<:#240,9025><:f200,2Times New Roman,> endif
<:#240,9025><:f200,2Times New Roman,>next
<:#240,9025><:f200,2Times New Roman,>if Match=0
<:#240,9025><:f200,2Times New Roman,> for I=10 to 2 step -1
<:#240,9025><:f200,2Times New Roman,> N=I - 1
<:#240,9025><:f200,2Times New Roman,> SetGlobalArray("PastURLs", I, Previous(N))
<:#240,9025><:f200,2Times New Roman,> next
<:#240,9025><:f200,2Times New Roman,> SetGlobalArray("PastURLs", 1, URL$)
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add your Name and Email<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddAuthor()
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)<:f>
<:#240,9025><:f200,2Times New Roman,>UserName=Get<:f><:f200,2Times New Roman,>ProfileString$("HTML","UserName","AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,>FillEdit(8000,UserName)
<:#240,9025><:f200,2Times New Roman,>UserEmail=<:f><:f200,2Times New Roman,>Get<:f><:f200,2Times New Roman,>ProfileString$("HTML","UserEmail","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>FillEdit(8001,UserEmail)<:f>
<:#240,9025><:f200,2Times New Roman,>UserHome=<:f><:f200,2Times New Roman,>Get<:f><:f200,2Times New Roman,>ProfileString$("HTML","UserHome","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>FillEdit(8002,UserHome)<:f>
<:#240,9025><:f200,2Times New Roman,>NoComma=GetGlobalVar$("AuthNoComma")
<:#240,9025><:f200,2Times New Roman,>FillEdit(20,NoComma)<:f>
<:#240,9025><:f200,2Times New Roman,>NoRule=GetGlobalVar$("AuthNoRule")
<:#240,9025><:f200,2Times New Roman,>FillEdit(21,NoRule)<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>box=DialogBox("." "ADDAUTHOR")
<:#240,9025><:f200,2Times New Roman,>IF box <<<;>1
<:#240,9025><:f200,2Times New Roman,> Exit Function
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>UserName=GetDialogField$(8000)<:f>
<:#240,9025><:f200,2Times New Roman,>UserEmail=GetDialogField$(8001)<:f>
<:#240,9025><:f200,2Times New Roman,>UserHome=GetDialogField$(8002)<:f>
<:#240,9025><:f200,2Times New Roman,>NoRule=GetDialogField$(21)<:f>
<:#240,9025><:f200,2Times New Roman,>NoComma=GetDialogField$(20)<:f>
<:#240,9025><:f200,2Times New Roman,>IF NoRule=0
<:#240,9025><:f200,2Times New Roman,> Field="<:f><:f200,2Times New Roman,><<HR<;><[>Enter]<:f><:f200,2Times New Roman,>"
<:#240,9025><:f200,2Times New Roman,>ELSE
<:#240,9025><:f200,2Times New Roman,> Field=""<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>Field="<:f><:f200,2Times New Roman,>{Field}<<A HREF=""{UserHome}""<;>"
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type(Field)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)
<:#240,9025><:f200,2Times New Roman,>Type(UserName)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>IF NoComma=0
<:#240,9025><:f200,2Times New Roman,> ComStr="<:f><:f200,2Times New Roman,>,<:f><:f200,2Times New Roman,>"
<:#240,9025><:f200,2Times New Roman,>ELSE
<:#240,9025><:f200,2Times New Roman,> ComStr=""<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>Type("<:f><:f200,2Times New Roman,><</A<;>{ComStr}<<ADDRESS<;>")
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,>Type(UserEmail)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type("<</ADDRESS<;>")<:f>
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,>WriteProfileString("HTML","UserName","{UserName}","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>WriteProfileString("HTML","UserEmail","{UserEmail}","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>WriteProfileString("HTML","UserHome","{UserHome}","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("AuthNoComma",NoComma)<:f>
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("AuthNoRule",NoRule)<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION<:f>
54 94 118 10 1006 1342177280 "static" "The defining instance of a term" 0
54 108 118 10 1007 1342177280 "static" "A citation, typically italic" 0
END DIALOG
<:f200,2Times New Roman,>
<:f200,2Times New Roman,255,0,0>'Function to add a ADDRESS tag<:f>
<:f200,2Times New Roman,>'***************************************************************************************<:f>
<:f200,2Times New Roman,>FUNCTION AddAddress()
<:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:f200,2Times New Roman,>
<:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)
<:f200,2Times New Roman,>Text=CurShade$()
<:f200,2Times New Roman,>IF Text<<<;>"" Cut()
<:f200,2Times New Roman,>ENDIF
<:f200,2Times New Roman,>Field="<<ADDRESS<;>"
<:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:f200,2Times New Roman,>Type(Field)
<:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)
<:f200,2Times New Roman,>Type(Text)
<:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:f200,2Times New Roman,>Type("<</ADDRESS<;>")
<:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:f200,2Times New Roman,>
<:f200,2Times New Roman,>end function
<:f200,2Times New Roman,>
<:f200,2Times New Roman,><:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add an image<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddImage()
<:#240,9025><:f200,2Times New Roman,>DIM Previous(10)<:f>
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)
<:#240,9025><:f200,2Times New Roman,>for I=1 to 10<:f>
<:#240,9025><:f200,2Times New Roman,> Previous(I) = GetGlobalArray$("PastImages",I)
<:#240,9025><:f200,2Times New Roman,> if Previous(I)<<<;>"" FillEdit(9000, Previous(I))
<:#240,9025><:f200,2Times New Roman,> endif
<:#240,9025><:f200,2Times New Roman,>next <:f>
<:#240,9025><:f200,2Times New Roman,>FillEdit(9500,"BOTTOM")
<:#240,9025><:f200,2Times New Roman,>FillEdit(9500,"MIDDLE")
<:#240,9025><:f200,2Times New Roman,>FillEdit(9500,"TOP")
<:#240,9025><:f200,2Times New Roman,>NetScape=GetGlobalVar$("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,>IF NetScape=1
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"LEFT")
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"RIGHT")
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"TEXTTOP")<:f>
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"ABSMIDDLE")
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"BASELINE")
<:#240,9025><:f200,2Times New Roman,> FillEdit(9500,"ABSBOTTOM")<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("ImgWIDTH")
<:#240,9025><:f200,2Times New Roman,> FillEdit(8002,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("ImgHEIGHT")
<:#240,9025><:f200,2Times New Roman,> FillEdit(8003,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("ImgBORDER")
<:#240,9025><:f200,2Times New Roman,> FillEdit(8004,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("ImgVSPACE")
<:#240,9025><:f200,2Times New Roman,> FillEdit(8005,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("ImgHSPACE")
<:#240,9025><:f200,2Times New Roman,> FillEdit(8006,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> box=DialogBox("." "ADDIMAGE2")
<:#240,9025><:f200,2Times New Roman,> IF box <<<;>1
<:#240,9025><:f200,2Times New Roman,> Exit Function
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>ELSE
<:#240,9025><:f200,2Times New Roman,> box=DialogBox("." "ADDIMAGE1")
<:#240,9025><:f200,2Times New Roman,> IF box <<<;>1
<:#240,9025><:f200,2Times New Roman,> Exit Function
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,>ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>URL$=GetDialogField$(8000)
<:#240,9025><:f200,2Times New Roman,>ALT$=GetDialogField$(8001)<:f>
<:#240,9025><:f200,2Times New Roman,>ALT2$=""
<:#240,9025><:f200,2Times New Roman,>IF ALT$<<<;>"" ALT2$=" ALT=""{ALT$}"""
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>ALIGN$=GetDialogField$(9500)
<:#240,9025><:f200,2Times New Roman,>IF GetDialogField$(23)=1 ISMAP$=" ISMAP"
<:#240,9025><:f200,2Times New Roman,>ELSE ISMAP$=""
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>Extra$=""
<:#240,9025><:f200,2Times New Roman,>IF NetScape=1<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDialogField$(8002)
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("ImgWIDTH",TEMP$)
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} WIDTH=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDialogField$(8003)
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("ImgHEIGHT",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} HEIGHT=""{TEMP$}"""<:f>
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDialogField$(8004)
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("ImgBORDER",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} BORDER=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDialogField$(8005)
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("ImgVSPACE",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} VSPACE=""{TEMP$}"""<:f>
<:#240,9025><:f200,2Times New Roman,> E<:f><:f200,2Times New Roman,>NDIF<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetDialogField$(8006)
<:#240,9025><:f200,2Times New Roman,> SetGlobalVar("ImgHSPACE",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} HSPACE=""{TEMP$}"""<:f>
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>Field="<<IMG SRC=""{URL$}""{ALT2$} ALIGN={ALIGN$}<:f><:f200,2Times New Roman,>{Extra$}<:f><:f200,2Times New Roman,>{ISMAP$}<:f><:f200,2Times New Roman,><;>"
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type(Field)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Match=0
<:#240,9025><:f200,2Times New Roman,>for I=1 to 10
<:#240,9025><:f200,2Times New Roman,> if Previous(I)=URL$ Match=1
<:#240,9025><:f200,2Times New Roman,> endif
<:#240,9025><:f200,2Times New Roman,>next
<:#240,9025><:f200,2Times New Roman,>if Match=0
<:#240,9025><:f200,2Times New Roman,> for I=10 to 2 step -1
<:#240,9025><:f200,2Times New Roman,> N=I - 1
<:#240,9025><:f200,2Times New Roman,> SetGlobalArray("PastImages", I, Previous(N))
<:#240,9025><:f200,2Times New Roman,> next
<:#240,9025><:f200,2Times New Roman,> SetGlobalArray("PastImages", 1, URL$)
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a Tag<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddTag(TagName)<:f>
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)
<:#240,9025><:f200,2Times New Roman,>Field="{TagName}<:f><:f200,2Times New Roman,>"
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type(Field)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,255,0,0>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a Horizontal Rule<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddRule()<:f>
<:#240,9025><:f200,2Times New Roman,>NetScape=GetGlobalVar$("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,>IF NetScape=1<:f>
<:#240,9025><:f200,2Times New Roman,> Extra$=""
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("HRThick")
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} SIZE=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("HRWidth")
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} WIDTH=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("HRAlign")
<:#240,9025><:f200,2Times New Roman,> IF TEMP$<<<;>"" Extra$="{Extra$} ALIGN=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> NoShade=GetGlobalVar$("HRShade")
<:#240,9025><:f200,2Times New Roman,> IF NoShade=1 Extra$="{Extra$} NOSHADE"
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> AddTag("<<HR{Extra$}<;><[>Enter]")
<:#240,9025><:f200,2Times New Roman,>ELSE
<:#240,9025><:f200,2Times New Roman,> AddTag("<<HR<;><:f><:f200,2Times New Roman,><[>Enter]<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#293,9025>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a line break<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddBreak()<:f>
<:#240,9025><:f200,2Times New Roman,>NetScape=GetGlobalVar$("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,>IF NetScape=1<:f>
<:#240,9025><:f200,2Times New Roman,> Extra$=""
<:#240,9025><:f200,2Times New Roman,> TEMP$=GetGlobalVar$("BRClear")
<:#240,9025><:f200,2Times New Roman,> IF (TEMP$<<<;>"<<NULL<;>")AND(<:f><:f200,2Times New Roman,>TEMP$<<<;>"")<:f><:f200,2Times New Roman,> Extra$="{Extra$} CLEAR=""{TEMP$}"""
<:#240,9025><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,> AddTag("<<BR{Extra$}<;><:f><:f200,2Times New Roman,><[>Enter]<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>ELSE
<:#240,9025><:f200,2Times New Roman,> AddTag("<<BR<;><:f><:f200,2Times New Roman,><[>Enter]<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#293,9025>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a no break<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddNOBR()<:f>
<:#240,9025><:f200,2Times New Roman,>CALL TextStyle<:f200,2Times New Roman,>("NOBR<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#293,9025>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to add a word break<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION AddWBR()<:f>
<:#240,9025><:f200,2Times New Roman,>AddTag("<<WBR<;><:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:p<* >>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Toggle between fixed to variable pitch text<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION TextEffects( Effect )<:f>
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Effect=lcase$(Effect)
<:#240,9025><:f200,2Times New Roman,>SWITCH Effect
<:#240,9025><:f200,2Times New Roman,> CASE "bold"
<:#240,9025><:f200,2Times New Roman,> Bo<:f200,2Times New Roman,>ld()
<:#240,9025><:f200,2Times New Roman,> CASE "italic"
<:#240,9025><:f200,2Times New Roman,> Italic()
<:#240,9025><:f200,2Times New Roman,> CASE "pitch"
<:#240,9025><:f200,2Times New Roman,> GetCurFontInfo(&Name,&Color,&Size,&Family)<:f>
<:#240,9025><:f200,2Times New Roman,> IF Name="Times New Roman" Name="Courier New"
<:#240,9025><:f200,2Times New Roman,> ELSE <:f><:f200,2Times New Roman,> Name="Times New Roman"
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,> CASE "blink"
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,> CALL TextStyle("BLINK")<:f>
<:#240,9025><:f200,2Times New Roman,>ENDSWITCH
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,255,0,0>
<:#240,9025><:f200,2Times New Roman,255,0,0>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Insert text styles<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>FUNCTION TextStyle( Style)<:f>
<:#240,9025><:f200,2Times New Roman,>DEFSTR Name, Color, Size, Family;
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>GetCurFontInfo(&Name,&Color,&Size,&Family)<:f>
<:#240,9025><:f200,2Times New Roman,>Text=CurShade$()
<:#240,9025><:f200,2Times New Roman,>IF Text<<<;>"" Cut()
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type("<<{Style}<;>")
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)
<:#240,9025><:f200,2Times New Roman,>Type(Text)
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, 255, 200)
<:#240,9025><:f200,2Times New Roman,>Type("<</{Style}<;>")<:f>
<:#240,9025><:f200,2Times New Roman,>FontChange(Name, Family, Color, Size)<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Change paragraph style<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION ParaStyle()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>SelectStyle
<:#240,9025><:f200,2Times New Roman,>
<:f200,2Times New Roman,>END FUNCTION<:p<* >><:f><:f200,2Times New Roman,255,0,0>'Set Options<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION Options()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Options=0
<:#240,9025><:f200,2Times New Roman,>TEMP$=<:f><:f200,2Times New Roman,>GetGlobalVar$("HRAlign<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>FillEdit(9500,TEMP$)<:f><:f200,2Times New Roman,>
<:f200,2Times New Roman,255,0,0> 'Fill Alignment List<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "LEFT" FillEdit(9500,"LEFT<:f><:f200,2Times New Roman,>") ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "RIGHT" FillEdit(9500,"RIGHT<:f><:f200,2Times New Roman,>") ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "CENTER" FillEdit(9500,"CENTER<:f><:f200,2Times New Roman,>") ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>TEMP$=<:f><:f200,2Times New Roman,>GetGlobalVar$("BRClear<:f><:f200,2Times New Roman,>")<:f>
<:#240,9025><:f200,2Times New Roman,>FillEdit(9501,TEMP$)<:f><:f200,2Times New Roman,> <:f200,2Times New Roman,255,0,0> 'Fill Clear List<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "<<NULL<;>" FillEdit(9501,"<<NULL<;>") ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "ALL" <:f><:f200,2Times New Roman,>FillEdit(9501,"ALL")<:f><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "RIGHT" <:f><:f200,2Times New Roman,>FillEdit(9501,"RIGHT<:f><:f200,2Times New Roman,>")<:f><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>IF TEMP$<<<;> "LEFT" <:f><:f200,2Times New Roman,>FillEdit(9501,"LEFT")<:f><:f200,2Times New Roman,> ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetGlobalVar$("HTMLNetScape")
<:#240,9025><:f200,2Times New Roman,>FillEdit(23,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetGlobalVar$("HRShade")
<:#240,9025><:f200,2Times New Roman,>FillEdit(25,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>'TEMP$=GetProfileString$(<:f><:f200,2Times New Roman,>"HTML", "HTMLBrowser", "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>'FillEdit(8000,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetGlobalVar$("HRThick")
<:#240,9025><:f200,2Times New Roman,>FillEdit(8001,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetGlobalVar$("HRWidth")
<:#240,9025><:f200,2Times New Roman,>FillEdit(8002,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetGlobalVar$("ConvertDialog")
<:#240,9025><:f200,2Times New Roman,>FillEdit(20,TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,>box=DialogBox("." "OPTIONS")<:f>
<:#240,9025><:f200,2Times New Roman,>IF box<<<;>1
<:#240,9025><:f200,2Times New Roman,> EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(9500)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HRAlign",TEMP$)
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(9501)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("BRClear",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>'TEMP$=GetDialogField$(8000)
<:#240,9025><:f200,2Times New Roman,>'WriteProfileString("HTML","HTMLBrowser",TEMP$,"AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(8001)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HRThick",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(8002)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HRWidth",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(25)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HRShade",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(23)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("HTMLNetScape",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,>TEMP$=GetDialogField$(20)
<:#240,9025><:f200,2Times New Roman,>SetGlobalVar("ConvertDialog",TEMP$)<:f>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Function to run converter on file<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FUNCTION ConvertFile()
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>ConvertFile=0
<:#240,9025><:f200,2Times New Roman,0,0,0>DoDialog=0
<:#240,9025><:f200,2Times New Roman,0,0,0>FileName$=GetOpenFileName$()
<:#240,9025><:f200,2Times New Roman,0,0,0>IF FileName$=""
<:#240,9025><:f200,2Times New Roman,0,0,0> IF SaveAs <<<;> 1 EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>ELSE Save()
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>DestDir$=GetDocVar("Destination")
<:#240,9025><:f200,2Times New Roman,0,0,0>IF DestDir$=""
<:#240,9025><:f200,2Times New Roman,0,0,0> DoDialog=1
<:#240,9025><:f200,2Times New Roman,0,0,0> <:f200,2Times New Roman,0,0,0>DestDir$=GetGlobalVar$("HTMLDir")
<:#240,9025><:f200,2Times New Roman,0,0,0> SetDocVar("Destination",DestDir$)
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>Name$=GetDocVar("DestName")
<:#240,9025><:f200,2Times New Roman,0,0,0>IF Name$=""
<:#240,9025><:f200,2Times New Roman,0,0,0> DoDialog=1
<:#240,9025><:f200,2Times New Roman,0,0,0> FileName$=GetOpenFileName$()
<:#240,9025><:f200,2Times New Roman,0,0,0> Position=1
<:#240,9025><:f200,2Times New Roman,0,0,0> Finished=0
<:#240,9025><:f200,2Times New Roman,0,0,0> WHILE Finished=0
<:#240,9025><:f200,2Times New Roman,0,0,0> LastPos=Position
<:#240,9025><:f200,2Times New Roman,0,0,0> Position=Strchr(Position, FileName$, "\")+1
<:#240,9025><:f200,2Times New Roman,0,0,0> IF Position=0 Finished=1
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0> WEND<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> NameDot$=MID$(FileName$, LastPos, LEN(FileName$)-LastPos+1)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> Dot=Strchr(1,NameDot$,".")
<:#240,9025><:f200,2Times New Roman,0,0,0> IF Dot<<<;>(-1) <:f200,2Times New Roman,0,0,0> Name$=LEFT$(NameDot$,
<:f200,2Times New Roman,0,0,0>Dot+(-1)<:f200,2Times New Roman,0,0,0>)
<:#240,9025><:f200,2Times New Roman,0,0,0> ELSE Name$=NameDot$
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0> Name$="{Name$}.HTM"<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>UseBreaks=GetProfileString$("HTML","UseBreaks","AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>NoDialog=GetGlobalVar$("ConvertDialog")
<:#240,9025><:f200,2Times New Roman,0,0,0>IF(NoDialog="")
<:#240,9025><:f200,2Times New Roman,0,0,0> NoDialog=FALSE
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>IF (NoDialog=FALSE OR DoDialog=1)
<:#240,9025><:f200,2Times New Roman,0,0,0> FillEdit(8001,Name$)
<:#240,9025><:f200,2Times New Roman,0,0,0> FillEdit(8000,DestDir$)
<:#240,9025><:f200,2Times New Roman,0,0,0> FillEdit(20,UseBreaks)
<:#240,9025><:f200,2Times New Roman,0,0,0> IF<:f200,2Times New Roman,0,0,0> DialogBox(".", "CONVERTFILE") <<<;> 1 EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0> Name$=GetDialogField$(8001)
<:#240,9025><:f200,2Times New Roman,0,0,0> DestDir$=GetDialogField$(8000)
<:#240,9025><:f200,2Times New Roman,0,0,0> UseBreaks=<:f><:f200,2Times New Roman,0,0,0>GetDialogField$(20)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> WriteProfileString("HTML","UseBreaks",UseBreaks,"AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,0,0,0> IF RIGHT$(DestDir$,1) <<<;> "\" DestDir$="{DestDir$}\"
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>SetGlobalVar("HTMLDir",DestDir$)
<:#240,9025><:f200,2Times New Roman,0,0,0>SetDocVar("Destination",DestDir$)
<:#240,9025><:f200,2Times New Roman,0,0,0>SetDocVar("DestName",Name$)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>RetVal=Exec("<++>wn_sm2ht.exe<-+>", "{FileName$} {DestDir$}{Name$}", 1)
<:#240,9025><:f200,2Times New Roman,0,0,0>IF RetVal<<=31
<:#240,9025><:f200,2Times New Roman,0,0,0> SWITCH RetVal
<:#240,9025><:f200,2Times New Roman,0,0,0> CASE (0)
<:#480,9025><:f200,2Times New Roman,0,0,0> Message("The system is out of memory or resources<:f><:f200,2Times New Roman,0,0,0>- close an application and try again","Error")
<:#240,9025><:f200,2Times New Roman,0,0,0> CASE (2)
<:#240,9025><:f200,2Times New Roman,0,0,0> Message("Executable file not found<:f><:f200,2Times New Roman,0,0,0>","Error")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> CASE (3)
<:#240,9025><:f200,2Times New Roman,0,0,0> Message("Executable path not found<:f><:f200,2Times New Roman,0,0,0>","Error")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> CASE (11)
<:#240,9025><:f200,2Times New Roman,0,0,0> Message("Bad EXE file<:f><:f200,2Times New Roman,0,0,0>","Error")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> DEFAULT<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> Message("Unknown Error- {RetVal}","Error")
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDSWITCH
<:#240,9025><:f200,2Times New Roman,0,0,0>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0>ConvertFile=1
<:#240,9025><:f200,2Times New Roman,255,0,0>'Background setting<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FUNCTION BackGround()
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>BGCOLOR$=GetDocVar("BGCOLOR")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>BODYTEXT$=GetDocVar("BODYTEXT<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>BACKGROUND$=GetDocVar("BACKGROUND<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>LINKCOL$=GetDocVar("LINKCOL<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>VLINKCOL$=GetDocVar("VLINKCOL<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>ALINKCOL$=GetDocVar("ALINKCOL<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8001, BGCOLOR$)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8002, BODYTEXT$<:f><:f200,2Times New Roman,0,0,0>)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8003, BACKGROUND$<:f><:f200,2Times New Roman,0,0,0>)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8004, LINKCOL$<:f><:f200,2Times New Roman,0,0,0>)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8005, VLINKCOL$<:f><:f200,2Times New Roman,0,0,0>)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>FillEdit(8006, ALINKCOL$<:f><:f200,2Times New Roman,0,0,0>)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>IF<:f200,2Times New Roman,0,0,0> DialogBox(".", "ColourSettings") <<<;> 1 EXIT FUNCTION<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>BGCOLOR$ = GetDialogField$(8001)<:f>
<:#240,9025><:f200,2Times New Roman,>BODYTEXT$ = GetDialogField$(8002)<:f>
<:#240,9025><:f200,2Times New Roman,>BACKGROUND$ = GetDialogField$(8003)<:f>
<:#240,9025><:f200,2Times New Roman,>LINKCOL$ = GetDialogField$(8004)<:f>
<:#240,9025><:f200,2Times New Roman,>VLINKCOL$ = GetDialogField$(8005)<:f>
<:#240,9025><:f200,2Times New Roman,>ALINKCOL$ = GetDialogField$(8006)<:f>
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>SetDocVar("BGCOLOR",BGCOLOR$)<:f>
<:#240,9025><:f200,2Times New Roman,>Set<:f><:f200,2Times New Roman,>DocVar<:f><:f200,2Times New Roman,>("BODYTEXT",BODYTEXT$)<:f>
<:#240,9025><:f200,2Times New Roman,>Set<:f><:f200,2Times New Roman,>DocVar<:f><:f200,2Times New Roman,>("BACKGROUND",BACKGROUND<:f><:f200,2Times New Roman,>$)<:f>
<:#240,9025><:f200,2Times New Roman,>Set<:f><:f200,2Times New Roman,>DocVar<:f><:f200,2Times New Roman,>("LINKCOL",LINKCOL<:f><:f200,2Times New Roman,>$)<:f>
<:#240,9025><:f200,2Times New Roman,>Set<:f><:f200,2Times New Roman,>DocVar<:f><:f200,2Times New Roman,>("VLINKCOL<:f><:f200,2Times New Roman,>",VLINKCOL<:f><:f200,2Times New Roman,>$)<:f>
<:#240,9025><:f200,2Times New Roman,>Set<:f><:f200,2Times New Roman,>DocVar<:f><:f200,2Times New Roman,>("ALINKCOL<:f><:f200,2Times New Roman,>",ALINKCOL<:f><:f200,2Times New Roman,>$)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,0,0,0>FileChanged(1,1)<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>
<:#240,9025><:f200,2Times New Roman,>END FUNCTION<:f>
<:#240,9025><:f200,2Times New Roman,255,0,0>'Run browser using this file<:f>
<:#240,9025><:f200,2Times New Roman,>'***************************************************************************************<:f>
<:#240,9025><:f200,2Times New Roman,>FUNCTION TestDoc()
<:#240,9025><:f200,2Times New Roman,>
<:#240,9025><:f200,2Times New Roman,>Browser$= GetProfileString$("HTML", "HTMLBrowser", "AMIPRO.INI")
<:#240,9025><:f200,2Times New Roman,>WHILE (Browser$="" )
<:#240,9025><:f200,2Times New Roman,> Message("You need to setup a web browser under Options","Test Document")
<:#240,9025><:f200,2Times New Roman,> IF CALL Options() <<<;> 1 <:f>
<:#240,9025><:f200,2Times New Roman,> EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,> ENDIF
<:#240,9025><:f200,2Times New Roman,> <:f><:f200,2Times New Roman,>Browser$= GetProfileString$("HTML", "HTMLBrowser", "AMIPRO.INI")<:f>
<:#240,9025><:f200,2Times New Roman,>WEND
<:#240,9025><:f200,2Times New Roman,0,0,0>Name$=GetDocVar("DestName")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>DestDir$=GetDocVar("Destination")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0>IF Name$="" OR DestDir$=""
<:#240,9025><:f200,2Times New Roman,0,0,0> IF CALL ConvertFile() <<<;> 1
<:#240,9025><:f200,2Times New Roman,0,0,0> EXIT FUNCTION
<:#240,9025><:f200,2Times New Roman,0,0,0> ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0> Name$=GetDocVar("DestName")<:f>
<:#240,9025><:f200,2Times New Roman,0,0,0> DestDir$=GetDocVar("Destination")<:f>
<:#240,9025><:f200,2Times New Roman,>ENDIF
<:#240,9025><:f200,2Times New Roman,0,0,0> Message("Blah <:f><:f200,2Times New Roman,>{Browser$}{DestDir$}{Name$}<:f><:f200,2Times New Roman,0,0,0>")<:f>
<:#240,9025><:f200,2Times New Roman,>Exec("{Browser$}","{DestDir$}{Name$}",1)
<:#240,9025><:f200,2Times New Roman,>END FUNCTION<:f>